<?php
// +----------------------------------------------------------------------
// | EtrolPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Author:HCZ <huangchengze@etrol.com>
// +-----------------------------------------------------------------------

namespace app\common\model;

use app\common\model\Base;
/**
 * 传感器模型
 */
class Sensor extends Base{
	protected $name = 'sensor';
	
	public function dangersource(){
		return $this->hasOne('app\basic\model\Dangersource','id','dangerSourceId');
	}


}